home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_08_12
/
8n12083c
< prev
next >
Wrap
Text File
|
1990-08-27
|
463b
|
22 lines
/* reporter.c - Reporter task */
#include <synrtx.h>
task Reporter(void) {
task_t self = task_self();
msg_t msg;
task_setHandler(0);
loop {
/* Wait for a while ... */
task_delay(500L);
/* ... then report */
msg.srcTid = self;
msg.dstTid = task_idOf("Update");
msg.dstHid = 1; /* Report = 1 */
msg.type = msg_type_SYNC;
task_interrupt(&msg);
}
}